<form method="post" action="add">
    <div>
        <label>用户名</label>
        <input type="text" name="username" value="{$data['username']|default=''}" />
        <label>{$valids['username']|default=''}</label>
    </div>
    <div>
        <label>密码</label>
        <input type="text" name="password" value="{$data['password']|default=''}" />
        <label>{$valids['password']|default=''}</label>
    </div>
    <div>
        <input type="submit" value="重置" />
        <input type="submit" value="提交" />
    </div>
</form>